package org.shj.pattern.chainresponsibility;

public class HandlerA extends Handler{

	@Override
	public void handleRequest(int request) {
		if(request >= 0 && request < 10){
			System.out.println("HandlerA process request.");
		}else{
			if(successor != null){
				successor.handleRequest(request); //自己不能处理，转到下一个
			}
			
		}
		
	}

}
